<template>
  <div id="app">
    <router-view/>
    <Modal
        v-model="toLoginOff"
        title="提示"
        @on-ok="ok"
        @on-cancel="cancel">
        <p>此账号已在其他地方登陆</p>
    </Modal>
  </div>
</template>

<script>
import '@/public/public.less'; 
import { mapState } from 'vuex'
export default {
  name: 'App',
  data(){
    return {
        // toLoginOff: true
    }
  },
  computed: mapState({
    toLoginOff: state => state.toLoginOff,
  }),
  methods: {
    ok(){
        window.location.href = 'https://www.banchengyun.com/loginDebug.html'
    },

    cancel(){
        window.location.href = 'https://www.banchengyun.com/loginDebug.html'
    }
  }
}


</script>

<style lang="less">
    .ivu-layout-content::-webkit-scrollbar {
        display: none!important;
    } 

	#app {
		height: 100%;
	}

    .shadow {
        box-shadow: 0 1px 4px rgba(0,21,41,.08)!important;
    }

    .mar-shadow {
        margin-bottom: 4px!important;
    }

	/*去掉router-view上边框*/
	.ivu-table-wrapper {
	    border: none!important;
	}

	.ivu-menu-horizontal.ivu-menu-light:after {
	    background: transparent!important;
	}

	.ivu-menu-horizontal {
	    height: 58px!important;
	    line-height: 58px!important;
	}

	/*修复弹窗无左边框和顶部边框*/
	.modal-table {
        border-top: 1px solid #dcdee2!important;
        border-left: 1px solid #dcdee2!important;
    }

    .ivu-layout-sider-children {
    	overflow-y: scroll!important;
    	padding-bottom: 116px!important;
    	box-sizing: border-box!important;
    }

    .ivu-layout-sider-children::-webkit-scrollbar {
    	width: 0!important;
    	left: 0!important;
    	color: transparent!important;
    }

    /*左侧导航栏*/
    .ivu-layout-sider {
        background: #444444!important;
    }

    .ivu-menu-dark {
        background: #444444;
    }

    .ivu-menu-dark.ivu-menu-vertical .ivu-menu-opened{
        background: #444444;
    }

    .ivu-menu-dark.ivu-menu-vertical .ivu-menu-opened .ivu-menu-submenu-title {
        background: #444444;
    }

    .ivu-menu-dark.ivu-menu-vertical .ivu-menu-item:hover, .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover {
        background: #444444;
    }

    .ivu-layout-sider-children>.ivu-menu>a.ivu-menu-item {
        border-left: 5px solid transparent!important;
        padding-left: 15px!important;
        padding-top: 11px!important;
        padding-bottom: 10px!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-item-active {
        background: #fff!important;
        border-left: 5px solid transparent!important;
        color: #444!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-item-active:hover {
        background: #fff!important;
        border-left: 5px solid transparent!important;
        color: #444!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active {
        background: #444!important;
        border-left: none!important;
        color: #fff!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active:hover {
        background: #444!important;
        border-left: none!important;
        color: #fff!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu>.ivu-menu-submenu-title {
        border-left: 5px solid transparent!important;
        padding-left: 15px!important; 
        padding-right: 10px!important;
        padding-top: 11px!important;
        padding-bottom: 10px!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active>div.ivu-menu-submenu-title {
        border-left: 5px solid #1676EB!important;
        padding-left: 19px!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active>ul.ivu-menu>a.ivu-menu-item-active {
        background: #fff!important;
        color: #444!important;
    }

    .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active>ul.ivu-menu>a.ivu-menu-item-active:hover {
        background: #fff!important;
        color: #444!important;
    }

    /* 表格添加按钮 */
    .table-btn {
        width: 115px!important;
    }

    /* 表头背景 */
    th,.ivu-table-header {
        background: #f5f7f9!important;
    }

    /* 左侧导航栏收缩样式 */
    .ivu-menu-dark>li>ul>a {
        padding-left: 48px!important;
    }

    .collapsed-menu>li>ul>a {
        padding-left: 24px!important;
    }

    .ivu-layout-sider-trigger {
        background: #444!important;
        bottom: 68px!important;
    }

    /* 新的间距样式 */
    .mar-left-24 {
        margin-left: 24px!important;
    }

    .mar-top-24 {
        margin-top: 24px!important;
    }

    .mar-right-24 {
        margin-right: 24px!important;
    }

    .mar-bottom-24 {
        margin-bottom: 24px!important;
    }

    .pad-left-24 {
        padding-left: 24px!important;
    }

    .pad-top-24 {
        padding-top: 24px!important;
    }

    .pad-right-24 {
        padding-right: 24px!important;
    }

    .pad-bottom-24 {
        padding-bottom: 24px!important;
    }
    /*右侧导航栏*/
    .rightSider{
        background: #fff!important;
        box-shadow: 0 -1px 4px rgba(0,21,41,.08);
        position: relative;
        z-index: 2;

        .ivu-layout-sider {
            background: #fff!important;
        }

        .ivu-menu-dark {
            background: #fff!important;
        }

        .ivu-menu-dark.ivu-menu-vertical .ivu-menu-opened{
            background: #fff!important;
        }

        .ivu-menu-dark.ivu-menu-vertical .ivu-menu-opened .ivu-menu-submenu-title {
            background: #fff!important;
        }

        .ivu-menu-dark.ivu-menu-vertical .ivu-menu-item:hover, .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover {
            background: #fff!important;
        }

        .ivu-layout-sider-children>.ivu-menu>a.ivu-menu-item {
            border-left: 5px solid transparent!important;
            padding-left: 19px!important;
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-item-active {
            background: #fff!important;
            border-left: 5px solid transparent!important;
            color: #444!important;
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-item-active:hover {
            background: #fff!important;
            border-left: 5px solid transparent!important;
            color: #444!important;
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active {
            background: #444!important;
            border-left: none!important;
            color: #fff!important;
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active:hover {
            background: #444!important;
            border-left: none!important;
            color: #fff!important;
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu>.ivu-menu-submenu-title {
            border-left: 5px solid transparent!important;
            padding-left: 19px!important; 
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active>div.ivu-menu-submenu-title {
            border-left: 5px solid #1676EB!important;
            padding-left: 19px!important;
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active>ul.ivu-menu>a.ivu-menu-item-active {
            background: #fff!important;
            color: #444!important;
        }

        .ivu-layout-sider-children>.ivu-menu>.ivu-menu-submenu.ivu-menu-item-active>ul.ivu-menu>a.ivu-menu-item-active:hover {
            background: #fff!important;
            color: #444!important;
        }

        .ivu-layout-sider-trigger .ivu-icon{
            display: none;
        }
        /* 表格添加按钮 */
        .table-btn {
            width: 115px!important;
        }

        /* 表头背景 */
        th,.ivu-table-header {
            background: #fff!important;
        }

        /* 右侧导航栏收缩样式 */
        .ivu-menu-dark>li>ul>a {
            padding-left: 52px!important;
        }
        .ivu-layout-sider-collapsed{
            .ivu-layout-sider-children{
                display: none;
            }
        }
        .collapsed-menu>li>ul>a {
            padding-left: 24px!important;
        }

        .ivu-layout-sider-trigger {
            background: #fff!important;
            bottom: 68px!important;
        }
    }

    .ivu-layout-sider-children>ul {
        overflow: scroll;
        height: calc(100vh - 212px);
    }

    .ivu-layout-sider-children>ul::-webkit-scrollbar {
        display: none;
    }
</style>